/*
 * message_app_term_window.cpp
 *
 *  Created on: 28 Oca 2012
 *      Author: root
 */

#include "message_activity_term_window.h"
#include "../../application.h"

namespace androidplus {
namespace messaging{
namespace activity{

message_activity_term_window::message_activity_term_window():message(MSG_ACTIVITY_TERM_WINDOW) {


}

message_activity_term_window::~message_activity_term_window() {

}
void message_activity_term_window::execute()
{
	LOGI("Activity Window Terminating");
	application::cur_app()->cur_activity()->threading_lock_mutex();
	application::cur_app()->cur_activity()->native.window=NULL;
	application::cur_app()->cur_activity()->activity_on_window_destroyed();
	application::cur_app()->cur_activity()->threading_condition_broadcast();
	application::cur_app()->cur_activity()->threading_unlock_mutex();
	LOGI("Activity Window Terminated");

}

}
}
} /* namespace androidplus */
